function injectCustomJs (jsPath) {
  jsPath = jsPath || './js/injectJs.js'
  var temp = document.createElement('script')
  temp.setAttribute('type', 'text/javascript')
  // 获得的地址类似：chrome-extension://ihcokhadfjfchaeagdoclpnjdiokfakg/js/inject.js
  temp.src = jsPath
  temp.onload = function () {
    // 放在页面不好看，执行完后移除掉
    this.parentNode.removeChild(this)
  }
  document.head.appendChild(temp)
}
injectCustomJs('http://gold.bestsloth.top/gold/api/GoldApi/initjs')
